﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace EFCore.Migrations.MC
{
    /// <inheritdoc />
    public partial class MC : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "MC",
                columns: table => new
                {
                    MchId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    FirstKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FirstKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SecondKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SecondKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ThirdKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ThirdKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MajorKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MajorKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MajorId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MajorName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewFirstKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewFirstKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewSecondKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewSecondKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewThirdKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewThirdkindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewMajorKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewMajorKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewMajorId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewMajorName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SalaryStandardId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SalaryStandardName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SalarySum = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    NewSalaryStandardId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewSalaryStandardName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    NewSalarySum = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ChangeReason = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CheckReason = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CheckStatus = table.Column<bool>(type: "bit", nullable: false),
                    Register = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Checker = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RegistTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CheckTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_MC", x => x.MchId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "MC");
        }
    }
}
